﻿namespace SapaFinance.Domain.Model
{
    public abstract class Currency : AbstractEntity
    {
        public virtual string Name { get; set; }

        public override bool Equals(object obj)
        {
            var compare = (Currency) obj;
            if (ReferenceEquals(null, compare)) return false;
            return GetType().Name.Equals(compare.GetType().Name);
        }
    }

    public class Eur : Currency {}

    public class Rub : Currency {}

    public class Usd : Currency {}
}